<div class = "main-view"><!--最外层div-->
    <div class="left-margin top-margin"><strong class="am-text-primary am-text-lg">帖子发布</strong></div>

    <!--<div class="am-modal am-modal-loading am-modal-no-btn" id="loading">-->
        <!--<div class="am-modal-dialog">-->
            <!--<div class="am-modal-hd">正在载入...</div>-->
            <!--<div class="am-modal-bd">-->
                <!--<span class="am-icon-spinner am-icon-spin"></span>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->


    <form class="am-form-inline left-margin top-margin" role="form">
        <div class="am-form-group">
            <label>内容描述</label> <input type="text" class="am-form-field" ng-model="desc">
        </div>
        <button id="search-target" data-am-modal="{target: '#loading'}" type="submit" class="am-btn am-btn-primary left-margin" ng-click="search()" data-target="cascad-search">搜索</button>
    </form>
    <br>
    <form class="am-form-inline left-margin top-margin" role="form">
        <!--<div class="city-cascading" style="display: inline-block;" id="cascad-search"></div>-->

        <label class="control-label">发帖账号：</label><br />
        <textarea style="width:600px;height:100px;" ng-model="postnumbers"></textarea>
    </form>

    <!--<div class="am-btn-group am-btn-group-xs left-margin top-margin">-->
        <!--<button type="button" class="am-btn am-btn-default" data-am-modal="{target: '#doc-modal-add', width: 800, height: 600}"><span class="am-icon-plus"></span> 新增</button>-->
        <!--<button type="button" class="am-btn am-btn-default" ng-click="delete()"><span class="am-icon-trash-o"></span> 删除</button>-->
    <!--</div>-->
    <div id = "pagination" class = "pagination"></div>
    <div class="pagination-table left-margin" id="tab_menu" style = "margin-top: 0px;">
        <form class="am-form">
            <table class="am-table-striped am-table-hover table-main">
                <thead>
                <tr>
                    <th class="table-check"><input type="checkbox" ng-click="allSelected()"></th>
                    <th class="table-title">类别</th>
                    <th class="table-title">版块</th>
                    <!--<th class="table-title">内容分类</th>-->
                    <th class="table-title">描述</th>
                    <th class="table-title">创建日期</th>
                    <th class="table-title">最后修改日期</th>
                    <th class="table-title">操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="question in questionStoreList" id = "{{question.objId}}">
                    <td class="table-check"><input type="checkbox" class = "item-check"></td>
                    <!--<td>{{if(question.storetype==)}}</td>-->
                    <td ng-show="question.storetype=='init'">初始化贴</td>
                    <td ng-show="question.storetype=='op'">运营贴</td>
                    <!--<td>{{question.category}}</td>-->
                    <td ng-show="question.category=='question'">求助</td>
                    <td ng-show="question.category=='share'">分享</td>
                    <!--<td>{{question.contentType}}</td>-->
                    <td>{{question.desc}}</td>
                    <td>{{question.dateCreated | date:'yyyy-MM-dd'}}<br>{{question.dateCreated | date:'HH:mm:ss'}}</td>
                    <td>{{question.dateLastModified | date:'yyyy-MM-dd'}}<br>{{question.dateLastModified | date:'HH:mm:ss'}}</td>
                    <td>
                        <button data-am-modal="{target:'#delete-confirm-{{$index}}'}" class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-copy"></span> 发布</button>
                        <!--发布-->
                        <div class="am-modal am-modal-confirm" tabindex="-1" id="delete-confirm-{{$index}}">
                            <div class="am-modal-dialog">
                                <div class="am-modal-hd">{{question.desc}}</div>
                                <div class="am-modal-bd">
                                    确定要发布这条帖子吗？
                                </div>
                                <div class="am-modal-footer">
                                    <span class="am-modal-btn" data-am-modal-cancel>取消</span>
                                    <span ng-click="questionPost(question, $index)" class="am-modal-btn" data-am-modal-confirm>确定</span>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>

    <div class = "left-margin">共<span id = 'page_number'>{{pageNumber}}</span>页 <span>{{count}}条数据</span></div>



</div>